package com.qyhl.module_practice.map.sign;

public class PracticeSignHomePresenter implements PracticeSignHomeContract.PracticeSignHomePresenter {
    private PracticeSignHomeModel mModel;

    private PracticeSignHomeContract.PracticeSignHomeView mView;

    PracticeSignHomePresenter(PracticeSignHomeContract.PracticeSignHomeView mView) {
        this.mView = mView;
        this.mModel = new PracticeSignHomeModel(this);
    }

    @Override
    public void signIn(String actId, String qrCode, String address) {
        mModel.signIn(actId, qrCode, address);
    }

    @Override
    public void signOut(String actId, String qrCode, String address) {
        mModel.signOut(actId, qrCode, address);
    }

    @Override
    public void signInSuccess() {
        mView.signInSuccess();
    }

    @Override
    public void signOutSuccess() {
        mView.signOutSuccess();
    }

    @Override
    public void signError(String msg) {
        mView.signError(msg);
    }
}
